#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <windows.h>

#define PROBAR '='

void ProBar() {
	char Bar[101];
	int cnt = 0;
	int len = sizeof(Bar);
	memset(Bar, '\0', len);
	char circle[] = "/-\\|";
	while (cnt <= len - 1) {
		printf("[%-100s][%02d][%c]\r", Bar, cnt, circle[cnt % 4]);
		fflush(stdout);
		Bar[cnt++] = PROBAR;
		Sleep(100);
	}
	printf("\n");
}

int main() {
	ProBar();
	return 0;
}